#include <signal.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv)
{


if(argc < 2)
puts("must input pid");

if(argc == 3)

kill(atoi(argv[1]), atoi(argv[2])==1? SIGINT:SIGKILL);	

return 0;

}


